import {Injectable} from "@angular/core";
import {HttpClient} from "@angular/common/http";
import {PageSplit} from "../../utils/page/page";
import {AppUrl} from "../../../app/app.general";
import {Observable} from "rxjs/Observable";

@Injectable()
export class BusinessManageService {
  constructor(private http: HttpClient) {

  }

  public getAllByPage(page:PageSplit):Observable<any>{
    return this.http.post(AppUrl.restaurant.getAllByPage,page);
  }

  public deleteById(id):Observable<any>{
    return this.http.post(AppUrl.restaurant.deleteById,{id:id});
  }

}
